home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / What's New? / Technical Documentaion / Macintosh Technotes and Q&As / technotes / tn / fdp_1085.hqx / FinderDragPro / FinderStuff.h < prev    next >
Encoding:
Text File  |  1996-08-23  |  1.9 KB  |  59 lines

  1.     //
  2.     //    LEGAL NOTICE
  3.     //    ============
  4.     //
  5.     //     You may incorporate this sample code into your applications
  6.     //     without restriction. This sample code has been provided "AS
  7.     //     IS" and the responsibility for its operation is 100% yours.
  8.     //     You are not permitted to redistribute the source as "Apple
  9.     //     sample code" after having made changes. If you're going to
  10.     //     re-distribute the source, we require that you make it clear
  11.     //     in the source that the code was descended from Apple sample
  12.     //     code, but that you've made changes.
  13.     //
  14.     //    REVISION HISTORY
  15.     //    ================
  16.     //
  17.     //    06/09/95    NG    last touched
  18.     //    08/23/96    PG    stolen from old FinderDrag project
  19.     //
  20.  
  21. #pragma once
  22.  
  23. #include <Drag.h>
  24. #include "FinderRegistry.h"
  25.  
  26. /*
  27. //
  28. // PromiseHFS constants
  29. //
  30. #define kRealSpecItemRef        1
  31. #define flavorTypeBlankSpec     'Blnk'
  32. #define flavorTypeRealSpec     'Real'
  33. */
  34.  
  35. //
  36. // These two should be in FinderRegistry.h, but they ain't
  37. //
  38. #define keyLocalPositionList    'mvpl'
  39. #define keyGlobalPositionList    'mvpg'
  40.  
  41.  
  42.  
  43. Boolean HaveScriptableFinder(void);
  44. Boolean FinderIsRunning(void);
  45. OSErr MakeAppleEvent(AEEventClass aeClass, AEEventID aeID, 
  46.             AEDesc *target, AppleEvent *ae);
  47. OSErr SendAppleEvent(AppleEvent *ae, AppleEvent *reply, AESendMode sendMode);
  48. OSErr CloneMoveDescList(AEDescList *objsToMove, FSSpecPtr nuLocation, 
  49.             Point globalPt, Boolean replace, Boolean moveFlag);
  50. OSErr BuildHFSDescList(DragReference theDrag, AEDescList *hfsList);
  51. OSErr HandleDragCloneMove(DragReference theDrag);
  52. OSErr GetDropFSSpec(DragReference theDrag, FSSpecPtr dirSpec);
  53. OSErr GetIconSuiteFromFinder(FSSpecPtr, Handle *);
  54. OSErr BuildIconSuiteFromAEDesc(Boolean, Handle *, AEDesc *);
  55. OSErr MakeSpecifierForFile(FSSpecPtr hfsObj, AEDesc *fileSpecifier);
  56. OSErr MakePropertySpecifierForSpecifier(DescType property, 
  57.             AEDesc *ofSpecifier, AEDesc *propertySpecifier);
  58. OSErr AddSpecToDescList(AEDescList *descList, FSSpecPtr theSpec);
  59.